package com.qwz.learn;

import com.qwz.learn.factory.AbstractFactory;
import com.qwz.learn.factory.ConcreteFactory1;
import com.qwz.learn.product.AbstractProductA;
import com.qwz.learn.product.AbstractProductB;

public class Client {

    public static void main(String[] args){
        //创建抽象工厂对象
        AbstractFactory factory = new ConcreteFactory1();
        //通过抽象工厂来获取一系列的对象，如产品A和产品B
        AbstractProductA productA = factory.createProductA();
        AbstractProductB productB = factory.createProductB();
    }
}
